Fixing problem with sample