Shouldn't you check if there is a reset function before attempting to invoke?