Finally fixed collision issues for rect objects