Bugfix/nbytesproblem

This is the version we fixed. If you want I can fix the permissions as well, but that should't be too much of a problem

@yamins81