Fixed credits function.