fix previous()