getting bb failed - write error