Fixed w reference error