Fixed wrong getsize() usage.