fix permissions issue