Fixed failed debug assertion