Fixed unused var warning which looks like a proper bug