fix graph bounds