Fix compatibility problem with examples