fixed cap errors