debug attribute bug fixed