fieldset pids and typecasting fix