fixed some bugs in cross detection, angle of each cross is added