Fix case when no accelerometer data provided
Fix random target selection