investment and loan fixes

Signed-off-by: Vladimir Vidinliev <v.vidinliev@gmail.com>