Fixes #75 Permission reset issue