fixed collision out of bounds