fixing a bug a think