fix one hidden-layer bug