Fix for issue 339

Fix for https://github.com/woothemes/FlexSlider/issues/339