fixed bug in initialization

Hey, i solved this! :)