fix undifined method