Fixed assert bug being present in release