Fixed multiple NPEs in GridActivity. Closes #16