Fix merge routine for "extract_alpha" mode