fix bug position_key