small bugfix for callbacks