What a strange looking candles
But it's Saturday now, I will be able to test it in Monday
Anyway, I decided to see what Times are returned and everything looks fine http://prntscr.com/7wotrs The top 4 values in the comment are Time, below are Candle Close prices. From what I see, "Once per bar" must work as expected.
But it's so simple function that is used, so I can't see how something in the code can be incorrect.