Fixed compile error on vis 2012