fixed a signal/crash bug of setting camera motion