fixed error with null reference exception when getting items from server