bugfix for UnsupportedOperationException: empty.max