Fixed small bugs. Replaced dependencies to old versions.