Fixed possible script error.