Fix @Trace crash in onCreate()

Related to #799