Fix pipeline camera hide/show bug.