Fix for exception if position runs out of adapter bounds.