fixed bug of getResources().getInteger