fix motion error