fixed credit bug