fixes to script enqueue