fixed some issues with Plot4