fixed qstring casting