missing <bytes> cast causing random string problems