Bug fix with print and write functions