plot bug fixed