trying to fix the log issue