%%content%% not parsed correctly when used with #if