fix permissions issues in guards