#29 fixed wrong model behavior when switched tabs