small perfect memory bug