Missing variable fix