fixed setAlpha method