Fixed collision detection bug

Using object tag instead of name