fix bug about collision