More ossec bugfixes