SHUTDOWN DEFAG didn't defragment the database completely if there was a unique hash index for a memory table.