remove the code that producing gtk errors