fixed bug in which first layer's forward() wasn't being called