Fix errors with creating grid and adding items