Fixes warnings in some samples