fix bug in /view