[kb] Multiple bugs fixed. Formatting fixed