fixed redirect loop in oil admin templates