Fixing pt bug