Fixed logic error in FileField