fixed regression with error message