Fixed node_view hook always runs query.