fixed resources parsing