Fixes that starting months are not correctly considered in queries