Fix credit bug