fixed incorrect layer initial setup