Dog's clever strategy to overcome fear of doorways