Collision testing is working for all except local variables