added filter to save published products correctly