whirlpool oven fires wrong igniters

I have a whirlpool gas range model# gs445lems2. When I turn on bake or broil I can hear the ovens gas turn on but the range igniters spark and the oven never ignites. The wiring is correct because it did this to me for a day or two then worked Fine for a month and now its acting up again. Please help!!!