Fix bug in model
Add throw tag to AJAX ordering controller