(Hopefully) fixed the bug in the sample project