[BUGFIX] fixing if condition attribute