Do not use some deprecated function with core ctx