Fix wrong variable asignment