Fixed a bug where number of shares returned by get_current_holdings() is always 0 due to a screwed up type conversion.