fixed min credit bug