Fix inline expanding issue with new styles