Fix position creation error