fixed error and type in reset_system