Bug fix in getting closing price from ohlc instead of marketdata object