fixed illegal move exception