small fix to the main figure regex