fixed flashdeal undefined index issue