bugfix: must not crash when there is no swap