Prevent undefined method on error