fixed the setter bug