lms' script hook compatibility patch