Fixes bug with deleteRecord state manager error