fix a wave record delete bug