Fix for the first if block not having position.