Fix the ranch_flashsocket_handler behavior