fixed resume errors