fixed rail trail bug