Fix a couple more bugs that appears after using QSResourceManager