Fixed problems with bin from rails4