bug fixed: need to define the data before I may use it.