fixed null pointer on the initia list