fix for prev