fix bug comes from modify stylesheet