Fixes an error on latest cucumber version and the usage of class variable