Fixed a bug in sample 03