don't error when not in a buffer