fixed static call to state()