fixed bugs in the sample mvc app