fixed unregisterKey and call functions