Fixed obstacle bugs