Bugfixing in deep_learning