changes to fix for bug in qt