added pos_id fix