Fixed the subresource calculation when editing existed bookings.