[PATCH] Fix for issue #301