bug fix for reservation