Some bugs are fixed.