Fix on transparancy restitution function