Fixed the every() function