bugfix: first/last error whenever a dirty_epoch smaller than first element is given