Fix to endless log