Fixed the bug in print all