fix'ed layer stacking order and passed target