fix result handler