Found where the error is, I'll kill it after a break