fix bugs on show command