Fixed one bug. Bug with orders remains though.