Fixed invalid log method