Bug in retrying deployment in Pages

I have a failed build in preview branch. but if i click retry deployment, it will trigger production build but not the branch i failed.