fix a bug in layers related to the recent underscoring