fix misplaced bug