Fixed some null resource handler problem.