Fixed bug by preventing prototypes from check on invalidation