bugfix on handle_result function in the notification controller