fix for "operation not permitted" error