fixed bug in migration that was already returning 0 for the current version