Fixed some serious bugs (v0.5.1)

Fixed the value api, which gives wrong valuw for 'dot' and 'size'