fixed core script bugs

All Change~!