fixed weird parse bug in model