Fixed plotting overlay problem