Fixes display bug when creating resource