Fix direct access to a private object propriety (patch by Andrew Miller)