fixed bug for move method due to unhandled exception