Fixed wrong design of visitor pattern.