Fixed bug in IPLayer.