Bug Fix for scripts not loading