fixed nullpointer exception that sometimes occured when a bluetooth device does really creapy things