small cast fix