fix val function alias bug