Change object dir detection