Fix incorrect value assignment