fixed ERK and linear solve