fix rmagick cause bug in OSX