fix key error for spinner and curly brace indentation