fix recovery building