Fixed  by using an alternative: .current.params.