fix: check for already registered callbacks