Fix out of range checks