fix bug in join view