fixing a bug in splitting views, which was introduced after refactoring