Bugfixes in rectified linear units implementation