fixed i/o disk error on getlayer