fixes strange valid position handling