fix for position type not setting right