Fixed to work with qobject branch