Fixed all bugs in SampleProject