fix issues in glib