Fixed bug in setting of listener for dialog fragment