Avoiding small console bug