fixed credit bugs