fixed free queue head error