Removed code that is not involved in the error