Fixed init direction bug