TypeError corrected for fixes #24