Fix logging and kit applying