Fixes a critical key error