Fix bug in fee cap setting