fix bad code move