Many fixes

After using it under load, we obtain some bugs:
  * approve queues doesn't handled right
  * under load it crashes