fix rendering cost matrix, updates according to the new api