Fix logic error
Fix logic error

0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio