error handling on keyword is empty