Before obstacle avoid