fixes second error with context