[3.8] Fix migration to version 3.8