Fix for #268

This should fix #268 .