Fixed executing migration command.