fixed wrong graph shift