Fix Mojo 4.0 compatibility issue