fix permissions issues