fixed resource formatting bugs