fix opening hours query