fixing issue with timeframe ref