fixed #557 for --lazy-apps