Fix some typo, script loaded check