Fixed crash for old glib version