set method bug fix