Fixed a bug in samples project.