fixed level switch killing bugs