fixed compilation for backend