Fixed bug where motif results were not writing out to file correctly.