fix update script for recovery