Fixes missing local var