fixed bug related to getting all versions for a plan (reverse order)