fix adding layer from property editor