command_not_found was not working properly

Fixed. Thanks to @jwm.