Fixed bug 2922

Fixed a bug with the pg editor