fixed check out bug