On the variation in the period of AB Andromedae