Buffer was wiped after being created which resulted in trying to setting buffer options and name to nil buffer. fixes #1031
ready