fixing plot