Fixed bincount bug