fix updatealpha on cpu over/underflow error