fix pipeline check for viewport init