Bug fix in access part (wrong type chosen)