bug with different num of filters for hidden layers
fix to bug in multiple layers