fix case for val (TableQuery)