Fixed bug with OHSS