fixed deleting bug

Change-Id: I67532d563ae9bb1adaa5f7e1220372f843228682
Signed-off-by: taoman89 <juntao.zhu.2010@sis.smu.edu.sg>