Accidental collision fix

Hi, 
This is my firs contribution. I found code for this fix, but it was commented out