fixed perm_size attribute