Fix bugs in wa

* results longer than 510 chars work
* results with newlines also work