Fixed invalid resources sizes