Fixed flow_dir_at_point by adding module 360 deg.