fix locals