fixed bug on handler exception