bug fixes for speker.write failing after the stop button