Fixed logic error

Changed `sender.lower` to `sender.lower()`