fix check for correct result after creating table 'ways'