some minor bugs fixed in goaldetection