fixed key errors