fixed error exception when only to was set
Release 0.2.3