Fixed error with closes