fix for increment ctx