Fixing non existing funciton call in exception