bug fixed twice invoking initialize function.