fix define getter and setter bug