Fix viewport data loss in smartmobile view