Fixes behaviour of reset.