bugfix for nullpointer exception in getTap