Troubleshooting

Your friends solution is a good one. The issue about the cost of the shares not being accurate is a good point. I have seen that a few times as well.