Fix Flash Socket handler