Fixes missing resource bug