the application opens twice now