added small fix for undefined calldom