fix bug in raising error