fixed a bug in Console related helpers