bugfix in model callback