Fixed bug in install post refactor