fixed exiting errors in the show page