fix bug with pos