kg bugfix integrated