fix compile
fix deleting replay by "DEL" key