fixed a bug in printing directions