Fixed anti-pattern, thanks to @thehutch.