Fix a sublayer bug