fix for dialogh callback