Fix bug in view port insert.