sceNet: Cleanup code and a minor bug fix