fix show resource bug