I also had this problem with my daughter when she was about that age. Mostly it was when she would be with her Gram or Daddy. She would be good all day but when I got there she started to misbehave. I ignored the bad behavior and gave her more positive responses. She outgrew it within a few months.