fixing bug in raising error