fix alpha conversion