Fixed an annoyingly large security flaw I overlooked