Fixed newScript bug, other things