This is an unrelated bugfix, just threw it in here cuz I noticed it.