solve the first plot bug