Fix some bugs in views website mode