fixed upgrade directory