fixed bug "twiss broken #11"