fix advanced compilation