Fix no state deleting & undefined variable error