fixed a bug in pxshm