Did you disturb the substrate? Released ammonia from substrate is often the cause. After every re-scape, you need to change at least 50% of water.
Secondary, diatoms are often in tanks with too much light and not enough CO2 supply. So cut the lights down or increase CO2 supply (or both).