fixed bug causing constant increase in epoch