$ 0 0 by Web Hercules. Finally I solved the problem. For some reason table xapi_states had disappeared. I imported the table from other database.