fixed a bug when viewing a test