intialization bug fixed