Fixed an Layer Creation Issue