fix cmf helper for getPrev