diff --git a/fancybox.module b/fancybox.module
index d0c146b..0c830ea 100644
--- a/fancybox.module
+++ b/fancybox.module
@@ -606,7 +606,7 @@ function fancybox_field_formatter_view($entity_type, $entity, $field, $instance,
  * Detect needed script and stylesheet in specified path
  */
 function _detect_fancybox_files() {
-  $path = libraries_get_path('fancybox');
+  $path = libraries_get_path('fancybox'). DIRECTORY_SEPARATOR . 'fancybox';
 
   $js_files = glob(getcwd() . DIRECTORY_SEPARATOR . $path . DIRECTORY_SEPARATOR . 'jquery.fancybox-*.js');
   $css_files = glob(getcwd() . DIRECTORY_SEPARATOR . $path . DIRECTORY_SEPARATOR . 'jquery.*.css');
