Fixes wrong alpha calculation issue