fixing bug related to rgb alpha