#39 Fixed is_resource issue