Fixed main script decl