TEMP FIX for cal memory error