Because I didn't want chapters on a new page I wrote them like {\let\clearpage\relax \chapter{Foo}} as suggested in another thread. Unfortunately this messes up the page numbers for chapters in the toc, when a chapter is (by coincidence) starting on a new page. I have created a minimal working example with the problem:
\documentclass[]{scrreprt}
\usepackage{lipsum}
\begin{document}
\tableofcontents
\chapter{Foo}
\lipsum[1-4]
{\let\clearpage\relax \chapter{Bar}}
\section{Barsub}
\lipsum[5]
\end{document}
As you can see the page number for chapter "Bar" is 2 instead of 3. Note however, that the page number of the section is correct.
I've tried to fix this by adding a \pagebreak before the chapter, but it changed the layout (in a more complex document). Doing \setcounter{page}{3} before the chapter "Bar" doesn't do the trick either.
How can I fix the page numbers without changing the layout? If necessary I'm willing to deploy "dirty" workarounds where I increase the page number manually.

