Fixed OS Compatibility Errors