fixed bug #276 - sorry, typo in first commit