FINALLY FIXED PLOTTING BUG