Fixed the bug that was giving unnecesary credit