fixed layer set value for key bug