fixed #4261 Export bug

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>
Merge pull request #891 from vpowerrc/bug_#4261

fixed #4261 Export bug