Fixed some problems in casteprun.