Fixed some qml bugs