Fixed no obstacle bug