fix exception problem