fixed error in getCheckin function