fixed object orientation

detection of several objects at the same time
why doing it on the first template only ?