fix candle bug, fixed #24