Fix crash on right click of flat rides

Fixes #303