Fixed logic error when grabbing files