Minor bug fix reported by Charles(A USer).