Fix bug upgrade magix cms 2.5.0