fixed buggy collision behavior.