Fix flow API when x axis padding exists