Fixed Flann crash