fixes for missing samples on graph, other incorrect function parameters