fix callback for fcntl