diff --git a/resource_booking.module b/resource_booking.module
index 4b84ff4..e204d44 100644
--- a/resource_booking.module
+++ b/resource_booking.module
@@ -423,14 +423,12 @@ function resource_booking_field_widget_form(&$form, &$form_state, $field, $insta
               //provide a link to the resouce booking schedule
               if (user_access(CONST_RESOURCE_BOOKING_VIEW_RESOURCE_SCHEDULE)) {
                 $available_link = l($available, $settings['resource_schedule_url'] . '/month/' . date('Y', $start_date) . '-' . date('m', $start_date) . '/' . $key, $rb_schedule_options);
+                $element["resources"]["fs-$cnt"]["availability-$cnt"][$key] = array(
+                  '#type' => 'markup',
+                  '#markup' => $available_link,
+                  '#value' => $available,
+                );
               }
-
-
-              $element["resources"]["fs-$cnt"]["availability-$cnt"][$key] = array(
-                '#type' => 'markup',
-                '#markup' => $available_link,
-                '#value' => $available,
-              );
             }
             else {
               //"none" row
