Fixed the obstacle expansion