fix that horrid bug