fix function reload