Bug with firebase destroy model - implemented workaround