Fix for nonexisting resource

Signed-off-by: hajee <hajee@moretIA.com>