fixed isLastDemo