Fix error with positions