Restore old window size restores size but also position

I have two monitors. If I move a window to my next monitor then maximize it, later if I want to unmaximize my window I do the shortcut for restore old window size. It not only restores the size but its position and puts it back into my previous monitor.