Missing declaration which caused an error when running