api.modifyClass sometimes(!) not working

I’m having an issue with modifyClass too, not sure if it is related?: Issues overriding getters in a controller