Fix: bad version numebr with MigratoProvider.

When using MigratoProvider the version of the bean is
wrongly calculated.