cleanup uneeded cast
fix perm again...