fix function backup