Bugfix in API, while returning the correct state of kqs