Fix undefined application after bootstrap