Fix for issue #52

module resource seems to give wrong measurements on some
cases.