Fixed minor error with code