Bugfix in detect energy method. Trying to unlink label file without
checking its existance.