fix draw demo bugs