fix state method call from web handlers