bug fixed. condition for label existence is wrong