Solved a stupid bug.