FIX: Better error message when syntax in model is incorrect