fix permissions afterwards