fix obstacle spacing bug