Fixed the error messages of the planned downtimes queries