Fix import and log