fixed object orientation

detection of several objects at the same time
you should mention it is being modified