Foaming is usually the result of cheap algaecides being added.