Fix duplicate method error.