fix inner method error