handle exeption fix