Avoid a possible crash using console