Fix getData() is called 2 time