fixed obstacle drawing issue