fix the crash problem because of redis master crash