Correct some bugs in views, better settings

cb(null, !!err)