Fixes problems with QML canvas