Removing hidden attribute code, I dont know why my initial tests failed in the past. Fixes issue 6177