Fix missing resource exception