fix($state): correct transition hook