Revert "Fix compatitable with macOS"

This reverts commit 2c8ef2d6b9b4200797a1fc0031ddf8b7aeea9b55.