Fixt bug at initalizing position.