fixed wmps end count being off by 1