layers were set to 0 which was bad for alpha values

fix #871
fix #855