checks for NaN left/right position to ignore them