fix fancy key bug