Fixed problem with custom scripts