fixed bug related to fetching position type