fixing ajax contexts