Fixed a bug in CUSPICE