fixed compilation for CBF