Invalid field access fix