zbeacon fix

This should hopefully fix the problem identified in #5.