fix mask declaration warning
fix share searching for special characters