Fixed bug in calling initialized twice