fix bind error in js session controller for error messaging