changed fix permissions script