Bugfix for error output
Using bytevectors to allocate memory