fix poping widgets when creating parameters.