fix collison check