Fixed usage of log