fix error stalling