Fixing weird Deadlock problem when 2 request arrive at the same time