Fix getter access under AOT