Properly fixes the function

Mistakingly removed a line I didn't mean to.