Found and fixed the bug

everything working now