Deal properly with layer properties