Correct a bug in get method.