fix a bug that prevents app from starting