Showing P&L tree in expanded view with filters

I wanted to show the P&L statement tree in the expanded view, so I have followed a forum and then changed the value of initial_depth to 100, but when I use the filter of Account it just collapses again.

This is the changed value:

Report without filters is ok, showing expanded view:

But when I use filter, it just collapses:

t3

It should show like this:

t4

A filter based on the word you have filtered will appear. If it is found in the expanded then it will come automatically.