solved bug about camera, gps and SD working together