fixed alpha channel related bugs