fix: digest not working correctly