Fixed out of bounds error while updating android clients.