Fixed a race condition in the inset filter