Update main.lua

Fixed apps disappearing in the menu