fix flex pin layout to core