Fix script order.
Merge pull request #1888 from mbebenita/frameBug

Fix script order.