fix

that function needs to return after displaying error message