fix export
report error in editor too