fix ratio plot