Bug fix in QML