f4 vector out of range fix