bug on save layer on osx corrected