John error fixes