Making broken method work properly