Fixed file permission mode.
Fixed bug# 10089 - Error message "name is used by another condition" issue when editing a condtion which was created by template.