Fix a crash on compose