fixed handler being always '0'