fixed abort trap error