fixed error on resume