Bayfiles: fixed #308