Fix notice on admin page due to wrong global