Fixed flatpages and minor templates problems