Fixed triangle collision bug