- fixed a namespace bug
- fixed a int casting bug