rearrange inlines, fixed #355