Fixed predecessor not working correctly