fixed collision after edge